/*
    Copyright (C) 2010-2011 mdis
    
    This file is part of mdis.
    Written by Ketfi-Chérif Mehdi <ketficherif.mehdi@gmail.com>

    mdis is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    mdis is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with mdis.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef _DEFINE_H
#define _DEFINE_H

#define MDIS_VERSION "mdis v0.01"
#define MDIS_USAGE MDIS_VERSION "\n"\
				"  mdis <options> [file]\n"

#define FLAGS_PLUGIN_FOUND		0x00000001
#define FLAGS_ROOT_USER			0x00000002

#define ERROR_ALLOCATE_MEMORY		0
#define SUCCESS				1

#define PLUGIN_NOT_FOUND		0
#define PLUGIN_FOUND			1
#define PLUGIN_DEVICE_FOUND		1
#define PLUGIN_ERROR			2
#define PLUGIN_LOAD_ERROR		0
#define PLUGIN_SYMS_NOT_FOUND		1
#define PLUGIN_SYMS_FOUND		2

#define DEFAULT_NPLUGINS_DIR		3

#define C(x) COLOR_PAIR(x)
#define scrmaxx stdscr->_maxx
#define scrmaxy stdscr->_maxy

#define TUI_TEXT_LEFT			1
#define TUI_TEXT_RIGHT			2
#define TUI_TEXT_CENTER			3

#define TUI_CDIALOG_BKGD		1
#define TUI_CDIALOG_BFRAME		2
#define TUI_CDIALOG_FRAME		3
#define TUI_CDIALOG_TEXT		4
#define TUI_TEXT_BLACK_WHITE		5
#define TUI_TEXT_WHITE_BLACK		6
#define TUI_TEXT_WHITE_BLUE		7
#define TUI_TEXT_RED_BLACK		8
#define TUI_SHADOW			9

#define KEY_TAB				0x00000009

#endif
